<?php 

class BehaviorCodeEnum
{
    //用户行为记录码
 public static $caCode = array(
 	"Account" =>array(
 		"Login"					=>		1001,
 		"LogOut"				=>		1002,
 		"GetCode"				=>		1003,
 		"GetCodeByVoice"		=>		1004,
 		"CheckCode"				=>		1005,
 		"ResetPassword"			=>		1006,
 		"GetPersonDetail"		=>		1007,
 		"SavePersonDetail"		=>		1008,
 		"UpdateIcon"			=>		1009,
 		"ResetPsw"				=>		1010,
 		"GetDeviceInfo"			=>		1011,
 	),
 	"Common" =>array(
 		"GetKnowledge"			=>		1101,
 		"GetSkill"				=>		1102,
 		"GetItemType"			=>		1103,
 		"GetSub" 				=>		1104,
 		"Upload" 				=>		1105,
 		"Notify"				=>		1106,
 	),
 	"Course" =>array(
 		"GetTeaCourseCal"		=>		1201,
 		"GetStuCourseCal"		=>		1202,
 		"GetTeaCourseList"		=>		1203,
 		"GetStuCourseList"		=>		1204,
 		"GetStudentList"		=>		1205,
 		"GetCourseList"			=>		1206,
 		"Test"					=>		1207,
 		"NeedUpLoadImage"		=>		1208,
 		"GetNeedFeedback"		=>		1209,
 		"GetImageFeedback"		=>		1210,
 		"GetItemFeedback"		=>		1211,
 		"GetStudentName"		=>		1212,
 		"HasViewedVideo"		=>		1213,
 		"HasNotification"		=>		1214,
 	),
 	"Feedback" =>array(
 		"DeleteMyQuestion"		=>		1301,
 		"QuestionOrAnswer"		=>		1302,
 		"Comment"				=>		1303,
 		"LikeVideo"				=>		1304,
 		"LikeVideoOld"			=>		1305,
 		"LikeComment"			=>		1306,
 		"GetCommentList"		=>		1307,
 		"GetBestCommentList"	=>		1308,
 		"GetQAList"		 		=>		1309,
 		"StuGetQAList"			=>		1310,
 		"SysFeeback"			=>		1311,
 		"GetSysFeedbackList"	=>		1312,
 		"GetSysFeedbackSingle"	=>		1313,
 		"CheckVersion"			=>		1314,
 	),
 	"Homework" =>array(
 		"AddHomework"			=>		1401,
 		"GetHomework"			=>		1402,
 		"GetItemListByPeriod"	=>		1403,
 		"GetHomeworkDraftList"	=>		1404,
 		"DelHomework"			=>		1405,
 		"GetHomeworkState"		=>		1406,
 		"UploadHomeworkImage"	=>		1407,
 		"FinishHomeworkFeedback"=>		1408,
 		"GetImageListByHomework"=>		1409,
 		"FeedbackNoVideo"		=>		1410,
 	),
 	"Index" =>array(
 		"Test"					=>		1501,
 		"Index"					=>		1502,
 		"GetStatistics"			=>		1503,
 		"UpLoadTest"			=>		1504,
 		"PhpInfo"				=>		1505,
 	),
 	"Item" =>array(
 		"Index"					=>		1601,
 		"GetItemView"			=>		1602,
 		"GetItemImageUrl"		=>		1603,
 		"GetItemVideo"			=>		1604,
 		"DelItemVideo"			=>		1605,
 		"ItemFeedback"			=>		1606,
 		"CollectItem"			=>		1607,
 		"DelItemFromCollection"	=>		1608,
 		"StuCollectItem"		=>		1609,
 		"TeaCollectItem"		=>		1610,
 		"TeaDelItemFromCollection"=>	1611,
 		"StuDelItemFromCollection"=>	1612,
 		"SearchItem"			=>		1613,
 		"SiftItem"				=>		1614,
 		"SearchItemByKeyword_New"=>		1615,
 		"SearchItemByKeyword"	=>		1616,
 		"SearchExercise"		=>		1617,
 		"QuickSort"				=>		1618,
 	),
 	"Message" =>array(
 		"GetMessageList"		=>		1701,
 	),
 	"Person" =>array(
 		"Index"					=>		1801,
 		"GetGrowth"				=>		1802,
 		"GetCannotItemList"		=>		1803,
 		"GetCollectionItemList"	=>		1804,
 		"GetSysMessageList"		=>		1805,
 		"CheckMessage"			=>		1806,
 		"CheckAllMessage"		=>		1807,
 	),
 	"Prepare" =>array(
 		"AddPrepare"			=>		1901,
 		"GetPrepare"			=>		1902,
 		"DelPrepare"			=>		1903,
 		"GetPrepareItemList"	=>		1904,
 	),
 	"Push" =>array(
 		"ExecPushTask"			=>		2001,
 	),
 	"Test" =>array(
 		"Index"					=>		2101,
 		"Index1"				=>		2102,
 		"UpLength"				=>		2103,
 		"UpString"				=>		2104,
 		"UpLoadTrail"			=>		2105,
 		"Index3"				=>		2106,
 		"Index4"				=>		2107,
 		"Index2"				=>		2108,
 	),
 	"Video" =>array(
 		"Index"					=>		2201,
 		"GetVideoInfo"			=>		2202,
 		"UploadVideo"			=>		2203,
        "Play"					=>		2204,
 		"PlayVideo"				=>		2205,
 		"GetNoteURL"			=>		2206,
 		"TeaGetNoteURL"			=>		2207,
        "RecordViewLength"      =>      2208,
        "RecordViewPause"       =>      2209,
 	),
     "Event" =>array(
         "test1"    =>"event.test1",
     )
 );
    //用于＂用户推荐系统＂的用户行为码，（史老师）还未开始记录
    const BEHAVIOR_ITEM_DETAILS       			= 1; //查看题目详情
    const BEHAVIOR_ITEM_KNOW        			= 2; //用户反馈题目会不会
    const BEHAVIOR_ITEM_STORE        			= 3; //题目的收藏与取消
    const BEHAVIOR_VIDEO_DETAILS        		= 4; //视频ID获取视频详情
    const BEHAVIOR_VIDEO_PLAY        			= 5; //播放视频
    const BEHAVIOR_VIDEO_QUESTION  				= 6; //对视频的题目或回答
    const BEHAVIOR_VIDEO_COMMENT				= 7; //学生评论视频
    const BEHAVIOR_VIDEO_LIKE					= 8; //学生顶踩视频

    //item_type
    const BEHAVIOR_TYPE_ITEM					= 0; //题目相关
    const BEHAVIOR_TYPE_VIDEO					= 1; //视频相关
    const BEHAVIOR_TYPE_NOTE					= 2; //笔记相关
    //item_content_type
    const BEHAVIOR_CONTENT_TEXT				    = 0; //文本形式回答视频
    const BEHAVIOR_CONTENT_AUDIO				= 1; //音频形式回答视频
    const BEHAVIOR_CONTENT_VIDEO				= 2; //视频形式回答视频
    //item_content
    const BEHAVIOR_CONTENT_VIDEO_VIEWLENGTH	    = 0; //记录观看视频长度
    const BEHAVIOR_CONTENT_VIDEO_PAUSE	        = 1; //记录观看中暂停

    const BEHAVIOR_VIDEO_DING					= 1; //顶视频
    const BEHAVIOR_VIDEO_CAI					= 0; //踩视频

    const BEHAVIOR_CONTENT_STORE				= 1; //收藏
    const BEHAVIOR_CONTENT_NO_STORE			= 0; //取消收藏

    const BEHAVIOR_CONTENT_KNOW				= 1; //会了
    const BEHAVIOR_CONTENT_NO_KNOW				= 0; //不会
    //page
    const BEHAVIOR_PAGE_VIDEO_QA_OUT        = 1; //普通提问
    const BEHAVIOR_PAGE_VIDEO_QA_IN	        = 2; //记录观看中提问
    const BEHAVIOR_PAGE_ITEM_DETAIL	        = 1; //记录观看题目
    const BEHAVIOR_PAGE_ITEM_ANSWER	        = 2; //记录观看题目答案

}